<template>
  <el-button type="info" @click="onPreview" class="custom-button">
    <span>预览</span>
    <template #icon>
      <SvgIcon icon-class="ic_预览" />
    </template>
  </el-button>
</template>

<script lang="ts" setup>
const route = useRoute();
const id = route.params.id as string;
const onPreview = () => {
  window.open(`/preview/scene/${id}`, '_blank');
};
</script>

<style lang="less" scoped></style>
